<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>添加事件</title>
	<style type="text/css">
		body{
			background-color:#F3F1EC;
		}
	</style>
</head>
<body>
	<%@ include file="include/base.jsp" %>
	<%@ include file="include/base-after.jsp" %>
	<div class="container-fluid" style="margin-top:70px;">
		<div class="row-fluid">
			<div class="span8">
				<div class="well" style="box-shadow:0 0 3px #CCCCCC;background-color:#F0F5F8;margin-top:-20px;">
					<div>
						<div style="float:left;height:100px;"></div>
						<p style="font-size:18px;">编辑<a href="chance.jspx">${chance.chancename}</a>的事件</p>
					</div>
				</div>
				<div style="box-shadow:0 0 3px #CCCCCC;background-color:#fff;margin-top:-20px;">
					<div style="padding:20px">
						<form action="saveeditevent.jspx?id=${event.id}" method="post">
							<input type="hidden" name="event.id" value="${event.id}"/>
							<p><textarea name="event.des" class="span7">${event.des}</textarea></p>
							<p class="pull-right"><input type="submit" value="保存修改" /><input type="button" id="#btn" value="取消"/></p>
							
						</form>
					</div>
					<script type="text/javascript">
						$("#btn").click(function(){
							window.location="event.jspx";
						});
					</script>
						
						<c:forEach items="${eventList}" var="ev" >
							<table class="table">
								<tbody>
									<tr>
										<td><img src="image/01.png" alt="" /></td>					
											<td>
												<p><a href="">${contact.contactname}</a> &nbsp&nbsp来自 <a href="eventItem.jspx">${eventItem.itemname}</a> </p>
												<p>${employee.name} 添加 于 ${ev.createtime}</p>
												<p>事件内容:${ev.des}</p>
											</td>									
										<td>
										</td>
									</tr>
								</tbody>
							</table>
						</c:forEach>
					</div>
					
				</div>	
			<div class="span4">
					<div style="background-color:#fff;border-radius:5px;padding:20px;font-size:18px;box-shadow:4px 5px 5px #252525;">
						<p>这个事件是关于</p>
						<hr/>
						<img src="image/mei.png"><a href="chance.jspx">${chance.chancename}</a>
						<hr />
					</div>
				</div>
			</div>
			</div>
			
	</body>
</html>
